<template>
  <div>
    <h1>{{ title }}</h1>
    <slot :games="games"></slot>
  </div>
</template>

<script>
export default {
  name: 'MyCategory',
  props: ['title'],
  data() {
    return {
      games: ['魂斗罗', '劲舞团', '超级玛丽'],
      films: ['教父', '黑暗侵袭', '黑客帝国']
    }
  }
}
</script>